package service.impl;

import java.util.List;

import model.Film;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;

/**
 * Repository interface for {@link Film} instances. Provides basic CRUD
 * operations due to the extension of {@link JpaRepository}. Includes custom
 * implemented functionality by extending {@link FilmRepositoryDatentraeger}.
 * 
 * @author Andre
 */
public interface FilmRepository extends CrudRepository<Film, Long>,
		FilmRepositoryDatentraeger {

	/**
	 * Find all Films with the given name. This method will be translated into a
	 * query by constructing it directly from the method name as there is no
	 * other query declared.
	 * 
	 * @param name
	 * @return
	 */
	List<Film> findByName(String name);

}
